package com.syncomponents.support;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


/**
 * 列表
 * 
 * @author sunkey
 * @date Jan 14, 2014
 */
@XmlRootElement(name="items")
public class BeanList<T> extends ArrayList<T> {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @XmlElement(name = "item", namespace = "")
    public List<T> getList() {
        return this;
    }

    public BeanList() {
        super(10);
    }
    
    public BeanList(Collection<? extends T> c) {
        super(c);
    }

}

